package com.liruo.treasureattic.service.api.fallback;

import com.liruo.treasureattic.service.api.client.UserClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;

/**
 * @Author:liruo
 * @Date:2022-10-09-22:44:29
 * @Desc
 */

@Slf4j
public class UserFallbackFactory implements FallbackFactory<UserClient> {
    @Override
    public UserClient create(Throwable throwable) {
        return new UserClient() {
        };
    }
}
